home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-07-11 | 3.4 KB | 108 lines | [TEXT/MPS ] |
- # Makefile for gzip (GNU zip) -*- Indented-Text -*-
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- srcdir = :
- bindir = "{MPW}"Tools:
- scriptdir = "{MPW}"Scripts:
- #mandir = {MPW}man:man1:
-
- Version = 1
- Revision = 2
- Bugfix = 2
- VerString1 = "for MPW 3.2"
- VerString2 = "^ © 1993 Free Software Foundation"
-
- CDefs = -d GNU_STANDARD
- Symbols = #-sym on
- CPU = -mc68020
- FPU = #-mc68881 #-elems881
- CSeg = -model far
- ANSIC = -r -d __STDC__
- Optimize = -opt full
- COptions = {CPU} {FPU} {CSeg} {Optimize} {Symbols} {ANSIC} {CDefs}
-
- AOptions = -case obj
-
- LinkCodeSize = -model far
- SegOptions = -sg Main=STDCLIB,STDIO,INTENV,SADEV,SANELIB,CSANELib,ErrMgr,cextras ∂
- -ra Main=resLocked,resPreload
- ObjType = -t MPST -c 'MPS '
- LinkOptions = -d {ObjType} {LinkCodeSize} {SegOptions} {Symbols}
-
- #Manuals = zdiff.1 zgrep.1 znew.1 zforce.1 gzip.1
-
- Resources = gzip.r
-
- Objects = gzip.c.o zip.c.o deflate.c.o trees.c.o bits.c.o unzip.c.o ∂
- inflate.c.o util.c.o crypt.c.o lzw.c.o unlzw.c.o unpack.c.o ∂
- unlzh.c.o
-
- Libs = "{CLibraries}"StdCLib.o ∂
- "{Libraries}"Stubs.o ∂
- "{Libraries}"ToolLibs.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o ∂
- "{CLibraries}"cextras.o
-
- #---------------------------------------------------------------------------
- # Main build rules
- #---------------------------------------------------------------------------
-
- all ƒ gzip zcmp.mac zgrep.mac znew.mac zforce.mac
-
- gzip ƒƒ Makefile {Objects} {Libs}
- Link -o {Targ} {LinkOptions} {Libs} {Objects}
-
- gzip ƒƒ Makefile {Resources}
- Rez -append -o {Targ} {Resources}
-
- gzip.c.o ƒƒ Makefile gzip.h tailor.h revision.h lzw.h
- zip.c.o ƒƒ Makefile gzip.h tailor.h crypt.h
- deflate.c.o ƒƒ Makefile gzip.h tailor.h
- trees.c.o ƒƒ Makefile gzip.h tailor.h
- bits.c.o ƒƒ Makefile gzip.h tailor.h crypt.h
- unzip.c.o ƒƒ Makefile gzip.h tailor.h crypt.h
- inflate.c.o ƒƒ Makefile gzip.h tailor.h
- util.c.o ƒƒ Makefile gzip.h tailor.h crypt.h
- crypt.c.o ƒƒ Makefile gzip.h tailor.h
- lzw.c.o ƒƒ Makefile gzip.h tailor.h
- unlzw.c.o ƒƒ Makefile gzip.h tailor.h revision.h lzw.h
- unpack.c.o ƒƒ Makefile gzip.h tailor.h
- unlzh.c.o ƒƒ Makefile gzip.h tailor.h
-
- #---------------------------------------------------------------------------
- # Other build rules
- #---------------------------------------------------------------------------
-
- clean ƒ
- Set Exit 0
- Delete gzip
- Delete ≈.o
- Delete ≈.SYM
- Set Exit 1
-
- install ƒ all
- Set Exit 0;
- SetVersion -t vers -i 2 -stage release -sv {Version} -sr {Revision} -sb {Bugfix} -verstring {VerString1} gzip
- SetVersion -t vers -i 1 -stage release -sv {Version} -sr {Revision} -sb {Bugfix} -verstring {VerString2} gzip
- duplicate -y gzip {bindir}
- duplicate -y zcmp.mac {scriptdir}zcmp
- duplicate -y zgrep.mac {scriptdir}zgrep
- duplicate -y znew.mac {scriptdir}znew
- duplicate -y zforce.mac {scriptdir}zforce
- # duplicate -y {Manuals} "{mandir}"
- Set Exit 1;
-